//
//  UIColor+SMColor.h
//  lishiminOC
//
//  Created by p2p on 16/10/11.
//  Copyright © 2016年 p2p. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (SMColor)

/**
 将16进制颜色值转换为RGB值 默认alpha为1

 @param hexColor 16进制颜色值

 @return UIColor
 */
+ (UIColor *)colorWithHex:(long)hexColor;


/**
 将16进制颜色值转换为RGB值

 @param hexColor 16进制颜色值
 @param opacity  alpha

 @return UIColor
 */
+ (UIColor *)colorWithHex:(long)hexColor alpha:(float)opacity;

/**
 随机取颜色值

 @return UIColor
 */
+ (UIColor *)randomColor;

@end
